package org.example.springiocdemo.facade;

public class FacadeLight {
    private BathroomLight bathroomLight;
    private BedroomLight bedroomLight;
    private LivingroomLight livingroomLight;
    public FacadeLight(){
        bathroomLight = new BathroomLight();
        bedroomLight = new BedroomLight();
        livingroomLight = new LivingroomLight();
    }
    public void on(){
        bathroomLight.on();
        bedroomLight.on();
        livingroomLight.on();
    }
    public void off(){
        bathroomLight.off();
        bedroomLight.off();
        livingroomLight.off();
    }
}
